package com.jake.microservice.provider.jpa.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.persistence.*;

@Data
@Entity
@Table(name = "company")
public class CompanyEntity {

    @Id
    @JsonIgnore
    private Integer cid;

    private String cname;

    @ManyToOne
    @JoinColumn(name = "address_id")
    private AddressEntity address;
}
